package cn.shyouchi.wuguanjia.android.ui.home.security.thread.message.birthday;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Eenie on 2017/3/17 at 16:38
 * Email: 472279981@qq.com
 * Des:
 */

public class BirthdayWish implements Parcelable {


    /**
     * id : 2
     * user_id : 6
     * name : 唐海斌
     * avatar : /images/user/20170320/20170320124620YC470557938.jpg
     * cake : 4003
     * greetings : 你好
     */

    private int id;
    private int user_id;
    private String name;
    private String avatar;
    private int cake;
    private String greetings;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getCake() {
        return cake;
    }

    public void setCake(int cake) {
        this.cake = cake;
    }

    public String getGreetings() {
        return greetings;
    }

    public void setGreetings(String greetings) {
        this.greetings = greetings;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.user_id);
        dest.writeString(this.name);
        dest.writeString(this.avatar);
        dest.writeInt(this.cake);
        dest.writeString(this.greetings);
    }

    public BirthdayWish() {
    }

    protected BirthdayWish(Parcel in) {
        this.id = in.readInt();
        this.user_id = in.readInt();
        this.name = in.readString();
        this.avatar = in.readString();
        this.cake = in.readInt();
        this.greetings = in.readString();
    }

    public static final Parcelable.Creator<BirthdayWish> CREATOR = new Parcelable.Creator<BirthdayWish>() {
        @Override
        public BirthdayWish createFromParcel(Parcel source) {
            return new BirthdayWish(source);
        }

        @Override
        public BirthdayWish[] newArray(int size) {
            return new BirthdayWish[size];
        }
    };
}
